DrawLine
Draws a line or
rectangle on an image.
Syntax: | imaG.DrawLine x1 , y1 , x2 , y2 , color , rectangle , fill |
x1 (single) | The beginning horizontal position of the starting point. |
y1 (single) | The beginning vertical position of the starting point. |
x2 (single) | The beginning horizontal position of the ending point. |
y2 (single) | The beginning vertical position of the ending point. |
color (OLE_COLOR) | OPTIONAL - color of the line or rectangle (default : imaG.ForeColor) |
rectangle (boolean) | OPTIONAL - a rectangle will be drawn instead a line (default : false) |
fill (boolean) | OPTIONAL - if rectangle = true then the internal area will be filled using fill criteria of imaG (default : false) |
This is a standard Microsoft Visual Basic method.
If MODE PROPERTY is NOT caModeDraw then an ERROR will be thrown.
If you are using this method with a palettized image, then the color selected must be contained in the image's palette. If it is not, then the closest color found in the image's palette is used.
See also DrawCircle , DrawMode, DrawPoint , DrawString , DrawStyle , DrawWidth